package cn.johnyu.mapper;

import cn.johnyu.pojo.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface AccountMapper {
//    @Select("select * from accounts")
    List<Account> findAllAccounts();

    Account loadAccount(int id);

    int addAccount(@Param("ac") Account account);

    int updateAccount(Account account);

    int deleteAccount(int id);

    Account loadAccountDetail(int id);

    int bashInsert(List<Account> accounts);
}
